package com.gf.dynamicdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.gf.framework.mongo.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author gaofei
 * @date 2022/6/10 21:34
 */
@EqualsAndHashCode(callSuper = false)
@Document
@Data
public class DynamicConfigMongo extends BaseEntity {
    @ApiModelProperty("配置名")
    private String name;

    @ApiModelProperty("配置类型")
    private String configType;

    /**
     * 不存数据库，用configStr存数据库
     */
    @ApiModelProperty("数组配置")
    private ArrayConfig arrayConfig;

    @TableField(exist = false)
    @ApiModelProperty("数字类型的配置")
    private NumberConfig numberConfig;

    @TableField(exist = false)
    @ApiModelProperty("enum类型")
    private EnumConfig enumConfig;
}
